import numpy as np

a = np.random.randn(5)
assert (a.shape == (5,))
print a.shape

print "rank 1 array"
print a
print a.T
print np.dot(a,a.T)

print "column vector"
a = np.random.randn(5, 1)
assert (a.shape == (5, 1))
print "shape:" + str(a.shape)
print a
print a.T
print np.dot(a,a.T)


print "raw vector"
a = np.random.randn(1, 5)
assert (a.shape == (1, 5))
print a.shape

